﻿<!DOCTYPE html>
<html lang="zh-cn" xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit" />
<title>修改密码</title>
<link rel="stylesheet" href="/css/pintuer.css" />
<link rel="stylesheet" href="/css/xiamen.css">
<link rel="stylesheet" href="/css/admin.css" />
<script src="/js/jquery.js"></script>
<script src="/js/pintuer.js"></script>
<script src="/js/respond.js"></script>
<script>
	$(document).ready(function() {
		pintuer();
		// $(document).on('click', WoKit.hideDropMenu);
	});
</script>
<link type="image/x-icon" href="/images/exam-logo.png"
	rel="shortcut icon" />
<link href="/images/exam-logo.png" rel="bookmark icon" />
</head>
<body>
	<div th:include="support :: formHeader(${'修改密码'})"></div>
	<!-- main -->
	<div class="layout xiamen-page-main">
		<div class="container">
			<div class="courses">
				<div class="line-big">
					<div class="x6 fadein-left">
						<form id="exmQuestionMediaCreateForm" method="post" class="form-x form-tips radius-big" 
							action="/sys/password">
							<div class="form-group">
								<div class="label">
									<label>旧密码</label>
								</div>
								<div class="field">
									<input type="password" class="input" name="oldPassword" placeholder="请输入您的旧密码" data-validate="required:必填"/>
								</div>
							</div>
							<div class="form-group">
								<div class="label">
									<label>新密码</label>
								</div>
								<div class="field">
									<input type="password" class="input" name="newPassword1" placeholder="请输入您的新密码" data-validate="required:必填"/>
								</div>
							</div>
							<div class="form-group">
								<div class="label">
									<label>再次输入</label>
								</div>
								<div class="field">
									<input type="password" class="input" name="newPassword2" placeholder="请再次输入您的新密码" data-validate="required:必填"/>
								</div>
							</div>
							<div class="form-button">
								<button class="button bg-main text-big" type='submit'>提交</button>
								<button class="button bg-yellow text-big" type='reset'>重置</button>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!-- footer -->
	<th:block th:if="${msg != null}">
		<script th:inline="javascript">
			/*<![CDATA[*/
			var msg = /*[[${msg}]]*/;
			/*]]>*/
			alert ('修改密码成功，请点击确定按钮返回主页面！');
			location.href = "/";
		</script>
	</th:block>
	<div th:if="${error != null}" class="alert alert-red bounce"><span class="close rotate-hover"></span><strong th:text="${error}"></strong></div>
</body>
</html>